package com.wze.wze.Service;


import com.wze.wze.Entity.Movie;
import com.wze.wze.Impl.MovieImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MovieService implements MovieImpl {
    @Resource
    MovieImpl movieImpl;

    @Override
    public int addMovie(String Movie, String MImage, int mid, String MvName, String Mvt, String MvInfo) {
        return movieImpl.addMovie(Movie, MImage, mid, MvName, Mvt, MvInfo);
    }

    @Override
    public Movie getMovieBymid(int mid) {
        return movieImpl.getMovieBymid(mid);
    }

    @Override
    public Movie getMovieByid(int id) {
        return movieImpl.getMovieByid(id);
    }

    @Override
    public int delMovieById(int id) {
        return movieImpl.delMovieById(id);
    }

    @Override
    public List<Movie> getMovieList(int Start, int Page, int id, String MvName) {
        return movieImpl.getMovieList(Start, Page, id, MvName);
    }
}
